import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { setupVab } from '~/library'
import App from './App.vue'
import { setupI18n } from '/@/i18n'
import { setupRouter } from '/@/router'
import '/@/styles/common.scss'
// custom element css
import '/@/styles/element.scss'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

setupVab(app)
setupI18n(app)
// setupStore(app)
setupRouter(app)

app.use(pinia).mount('#app')
